<!--
  Generated template for the OrderaddPage page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<ion-header>

  <ion-navbar text-center color="primary">
    <ion-title>新增订单</ion-title>
  </ion-navbar>

</ion-header>


<ion-content padding>
  <ion-list>
    <ion-item>
      <ion-label class="item-label">类型</ion-label>
      <ion-select [(ngModel)]="type" multiple="false">
        <ion-option *ngFor="let type of typelist" [value]="type.typecode">{{type.typedes}}</ion-option>
      </ion-select>
    </ion-item>
    <ion-item>
      <ion-label class="item-label">标题</ion-label>
      <ion-input type="input" [(ngModel)]="title"></ion-input>
    </ion-item>
    <ion-item>
      <ion-label class="item-label">详细描述</ion-label>
    </ion-item>
    <ion-textarea cols="30" rows="10" style="border: solid 1px blue" [(ngModel)]="des">
    </ion-textarea>
    <ion-item>
      <ion-label class="item-label">指定商家</ion-label>
      <ion-select [(ngModel)]="selectedshop">
        <ion-option *ngFor="let shop of shoplist" [value]="shop.userid">{{shop.name}}</ion-option>
      </ion-select>
    </ion-item>
  </ion-list>
</ion-content>
<ion-footer>
  <button ion-button block (click)="addOrder()">保存</button>
</ion-footer>
